asm/atomic.h: common prototyping (add xen/atomic.h)
authorCorneliu ZUZU <czuzu@bitdefender.com>
Fri, 15 Jul 2016 10:44:58 +0000 (13:44 +0300)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 15 Jul 2016 12:33:54 +0000 (13:33 +0100)
commite308d3407f0144973fe1cc25caff4040d6497729
tree1f62c366d6a6c7f5e4fb89d406f06e3067bc5ffd
parent33d028115e62929278b8c91863b7989ecfdf42d4
asm/atomic.h: common prototyping (add xen/atomic.h)

Create a common-side <xen/atomic.h> to establish, among others, prototypes of
atomic functions called from common-code. Done to avoid introducing
inconsistencies between arch-side <asm/atomic.h> headers when we make subtle
changes to one of them. Some arm-side macros had to be turned into inline
functions in the process.

Removed outdated comment ("NB. I've [...]").

Signed-off-by: Corneliu ZUZU <czuzu@bitdefender.com>
Suggested-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Acked-by: Julien Grall <julien.grall@arm.com>
xen/include/asm-arm/atomic.h
xen/include/asm-x86/atomic.h
xen/include/xen/atomic.h [new file with mode: 0644]